import Cookies from 'js-cookie'
// console.log(Cookies);
const USER_TOKEN_KEY='bkpx-2021-user-token'

/**
 * 
 */
export const setToken=(token)=>{
    // console.log(token);
    Cookies.set(USER_TOKEN_KEY,token,{expires:7})
}
export const getToken=(token)=>{
   return Cookies.get(USER_TOKEN_KEY)
}
export const removeToken=(token)=>{
    Cookies.remove(USER_TOKEN_KEY)
}